﻿using System;
using System.Configuration;

namespace suanpan.API.Components.Config
{
    public class RestChessConfig
    {
        public RestChessConfig() { }

        private static RestChessConfig _instance = (RestChessConfig)ConfigurationManager.GetSection("RestChessConfig");

        public static RestChessConfig GetInstance()
        {
            if ( _instance == null )
                throw new ConfigurationErrorsException("Failed to locate or deserialize the 'RestChessConfig' section.");

            return _instance;
        }

        public string ConsumerProviderType;

    }
}
